package com.etoak.service.impl;

import com.etoak.common.core.vo.ResultVO;
import com.etoak.entity.Dict;
import com.etoak.mapper.DictMapper;
import com.etoak.service.DictService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * DictServiceImpl服务实现类
 *
 * @author etoak
 * @since 2025-06-28
 */
@Service
public class DictServiceImpl extends ServiceImpl<DictMapper, Dict> implements DictService {

    @Override
    public ResultVO<List<Dict>> getList(String type) {
        return ResultVO.success(lambdaQuery().eq(Dict::getType,type).orderByAsc(Dict::getSort).list());
    }
}
